package com.black.utils.file.sport;

import com.alibaba.fastjson2.JSONObject;
import com.black.utils.config.loader.Loader;
import com.black.utils.file.FileTypeEnum;
import com.garmin.fit.Decode;
import com.garmin.fit.MesgBroadcaster;

import java.io.IOException;
import java.util.Collections;
import java.util.List;

/**
 * //TODO 待实现
 * @author ylx
 */
public class FitFileLoader extends Loader {
    @Override
    public JSONObject loadJsonConfig(String sourcePath) throws IOException {
        Decode decoder = new Decode();
        MesgBroadcaster broadcaster = new MesgBroadcaster(decoder);

        return null;
    }

    @Override
    public List<FileTypeEnum> getTypes() {
        return Collections.singletonList(FileTypeEnum.FIT);
    }
}
